package com.web709.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "商品兑换实体类")
public class ExchangeGoods {
    @ApiModelProperty(value = "兑换商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private int userId;
    @ApiModelProperty(value = "兑换商品id")
    @TableField(value = "goods_id")
    private int productId;
    @ApiModelProperty(value = "兑换时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "兑换状态")
    private char status;


}
